package cn.fu.tag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

/**
 * @Title: ChooseTag.java
 * @Package cn.fu.tag
 * @Description: 嵌套标签，完成if else
 * @author zhangxiaofu
 * @Company www.viewhigh.com
 * @date 2016年7月23日 下午11:47:56
 * @version V1.0
 */
public class ChooseTag extends SimpleTagSupport {

	private boolean flag;

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	@Override
	public void doTag() throws JspException, IOException {
		getJspBody().invoke(null);
	}
}
